function Ajax() {
  var self = this;
  
  var sUrl = 'lib/ajax.php';
  
  this.getDir=function(sDir, fCallback) {
    $.getJSON(sUrl, {
      'action':'readdir',
      'dir':sDir
    }, function(data) {
      if (data.code != undefined)
        oMenu.setMessage(true, data['melding']);
      else
        fCallback(data)
    });
  }
  
  this.doOpp=function(sOpp, sSubject, sDestination, fCallback) {
    if (sSubject != sDestination)
      $.getJSON(sUrl, {
        'action':sOpp,
        'old':sSubject,
        'new':sDestination
      }, fCallback);
  }
  
  
}
